w#include <iostream.h>
wstruct example { int field1; int field2; };
wint main()
w{ example Structure;
w example
*PointerToStructure;
w Structure.field1=12;
w PointerToStructure
=& Structure; //& is necessary when dealing with structures and using pointers to them
w cout<<
PointerToStructure->field1; //The -> acts somewhat like
the * when used with pointers. It says, get whatever is
at that memory address Not "get what that memory
address is"
w return 0;
w}